class CustomerServiceController < ApplicationController

  def post_data

    respond_to do |format|
      format.json { render json: CustomerServiceHelper.post_data(params[:service_path],get_service_params) }
    end
  end

  def get_data

    respond_to do |format|
      format.json { render json: CustomerServiceHelper.get_data(params[:service_path],get_service_params) }
    end
  end

  def put_data

    respond_to do |format|
      format.json { render json: CustomerServiceHelper.put_data(params[:service_path],get_service_params) }
    end
  end

  def delete_data

    respond_to do |format|
      format.json { render json: CustomerServiceHelper.delete_data(params[:service_path],get_service_params) }
    end
  end

  def patch_data

    respond_to do |format|
      format.json { render json: CustomerServiceHelper.patch_data(params[:service_path],get_service_params) }
    end
  end

end